#!/user/bin/env node

const Koa = require('koa');
const app = new Koa();
const log = console.log;
const logger = require('./middleware/logger.js');

app.use(logger);

app.use((ctx,next)=>{
  ctx.body = 'hello world';
});

app.listen(8080);
